﻿using BreadCrumbHelper.Core.Attributes;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace DevWeb.Biztalk.DeploymentSettings.WebUI.Controllers
{

   

    public class AdminController : BaseController
    {


        // GET: Admin
        public ActionResult Index()
        {
            return View();
        }

        // GET: Admin
        public ActionResult DbTrace()
        {

            var traceitems = Context.AuditLog.AsNoTracking().Include("LogDetails").AsNoTracking().OrderByDescending(p=>p.EventDateUTC).ToList();
            return View(traceitems);
        }


        public ActionResult DbTraceDetails(int id)
        {

            var details = Context.LogDetails.AsNoTracking().Include("Log").AsNoTracking().Where(p => p.Log.AuditLogId == id).ToList();
            return View(details);
        }
    }
}